from django.contrib import admin
from .models import UserInformation
# Register your models here.
class UserInformationAdmin(admin.ModelAdmin):
    list_display_links = ['auth',]
    search_fields = ['auth__username']
    list_display =['auth','available','attestation','attestation_inf']
    list_editable =['available','attestation','attestation_inf']
    list_filter = ['available', 'attestation']
    readonly_fields = ['auth']
admin.site.register(UserInformation,UserInformationAdmin)
admin.site.site_header = '心灵日记-后台管理'